package Pattern.StatePattern.Program.programtwo;

public class Secondary implements State {
    private State state;

    public Secondary() {
    }

    public Secondary(State state) {
        this.state = state;
        change(this.state);
    }

    public void doubleScore() {
        System.out.println("Secondary could have doubleScore");
    }

    public void play() {
        System.out.println("Secondary Play Game");
    }

    @Override
    public void change(State state) {
        play();
        doubleScore();
        new Professional(state);
    }
}
